package com.pkk.components.rpc.common.code;

import com.pkk.components.rpc.enums.CodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title: 登录认证异常code<br>
 * @Description: <><br>
 * @date 2020/3/18 0018 下午 2:22<br>
 * @URL:[]
 */
@Getter
@AllArgsConstructor
public enum AuthoritiesCode implements CodeEnum<String, String> {

  /**
   * 登录异常的异常码封装
   */
  NO_AUTHORITY("79999", "您无权访问！"),
  TOKEN_INVALID("79998", "token无效,请重新登录！"),
  Unauthorized("79997", "请重新登录！"),
  INVALID_USERNAME_OR_PASSWORD("79996", "用户名或密码错误！"),
  JWT_TOKEN_EXPIRED("79995", "登录已失效，请重新登录！"),
  AUTHENTICATION_FAILED("79994", "登录失败，请稍后重试！"),
  INVALID_TOKEN("79993", "Token验证失败！"),
  GET_USER_INFO_ERROR("79992", "获取用户信息失败！"),
  GET_USER_RESOURCE_ERROR("79991", "获取用户资源角色失败！"),
  CLIENT_VALID_TOKEN_ERROR("79990", "token无效，请重新登录！"),
  HEADER_INVALID_CLIENT_ERROR("79989", "请求头中无client信息！"),

  ;
  private String code;
  private String msg;

}
